gl: Use older GLSL shaders with legacy contexts
authorEmmanuele Bassi <ebassi@gnome.org>
Tue, 6 Oct 2015 18:55:43 +0000 (19:55 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Wed, 7 Oct 2015 15:21:57 +0000 (16:21 +0100)
commite636c316a67bbb2888d25de2036d20149c286120
tree3af34ca54e1bc48be9004546da306b8718a6c406
parent24230ca78363d8608e77c639db7662c11257f970
gl: Use older GLSL shaders with legacy contexts

If we're using modern GLSL, then we should stop using deprecated
modifiers, like 'varying' and 'attribute', as well as deprecated global
variables, like 'gl_FragColor'.

On the other hand, with legacy contexts we should be using older GLSL
shaders, to maximize compatibility.

https://bugzilla.gnome.org/show_bug.cgi?id=756142
gdk/gdkgl.c